-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command for opening the containing folder of a file #10523
Add command for opening the containing folder of a file #10523
Conversation
8dea8fc
to
83be22a
Compare
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
83be22a
to
3f98b5a
Compare
Thank you for the review, @vince-fugnitto! I integrated your feedback in the updated commit. |
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
3f98b5a
to
ce4e968
Compare
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
ce4e968
to
727da82
Compare
Thank you for the review! I updated the commit and rebased it on master. |
727da82
to
422a778
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, although there is an issue with Windows and this feature not working there. Luckily, it can be easily fixed :)
Afterwards, I think this PR is good to go.
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
422a778
to
26a5017
Compare
packages/navigator/src/electron-browser/electron-navigator-menu-contribution.ts
Outdated
Show resolved
Hide resolved
A new 'OPEN_CONTAINING_FOLDER' command was added for the electron application. It opens the native file explorer at the path where the selected resource (or resources) from the file navigator is located. Signed-off-by: Alexandra Buzila <[email protected]>
26a5017
to
52447dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that the feature works as expected on Windows and Ubuntu (VM) 👍
What it does
A new 'OPEN_CONTAINING_FOLDER' command was added for the electron application.
It opens the native file explorer at the path where the selected resource (or resources) from the file navigator is located.
Fixes #10522
How to test
Select a file or directory in the file explorer, open the context menu and select the
Open Containing Folder
action. The OS file explorer should open at the path where the file is located.Review checklist
Reminder for reviewers
Signed-off-by: Alexandra Buzila [email protected]